﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendMessageCheck.aspx.cs" Inherits="MxWeiXinPF.Web.admin.users.SendMessageCheck" ValidateRequest="false" %>
<%@ Import namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>批量发送短信</title>
<script type="text/javascript" src="../../scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="../../scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="../../scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="../../scripts/swfupload/swfupload.js"></script>
<script type="text/javascript" src="../../scripts/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="../../scripts/swfupload/swfupload.handlers.js"></script>
<script type="text/javascript" src="../js/layout.js"></script>
<link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();
        //初始化上传控件
        $(".upload-img").each(function () {
            $(this).InitSWFUpload({ sendurl: "../../tools/upload_ajax.ashx", flashurl: "../../scripts/swfupload/swfupload.swf" });
        });
    });
</script>
<style>
    .ui_table_big tr td{ padding:4px 0;}
    .ui_table_s tr td{ padding:4px 0;border:1px solid #ddd;}
    .ui_table_big tr td input, .ui_table_big tr td textarea{border:1px solid #ddd;}
    .ui_select {height:34px;border:1px solid #ddd; line-height:36px; width:96%; padding:3px 3px 3px 3px}
    .ui_input_01{height:30px;border:1px solid #ddd; line-height:32px;border:1px solid #ddd; width:96%; padding:3px 3px 3px 3px}
</style>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="SendMessagelist.aspx" class="back"><i></i><span>返回列表页</span></a>
  <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>批量发送短信</span>
  <i class="arrow"></i>
  <span>批量发送短信</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div class="tab-content"> <asp:ScriptManager ID="ScriptManager1" runat="server" />
<table class="ui_table_big" style="width: 90%; margin-right: 20px;" >
            <tr>
                <td style="text-align: right; width:80px">
                    短信内容：
                </td>
                <td style="text-align: left"">
                    <input id="tbMessageContent" runat="server" type="text" class="ui_input_txt03" placeholder="短信内容" style=" width:90%;height:36px;padding:0 4px;"  />
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    查询条件：
                </td>
                <td style="text-align: left; height:48px">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table class="ui_table_s" style="padding:0 4px;width: 90.7%;">
                                <tr style=" text-align:center; height:36px">
                                    <td style="width: 20%;">
                                        内容
                                    </td>
                                    <td style="width: 15%;">
                                        条件
                                    </td>
                                    <td style="width: 25%;">
                                        值
                                    </td>
                                    <td style="width: 50%;">
                                        操作
                                    </td>
                                </tr>
                                <tr style=" text-align:center; height:36px;">
                                    <td>
                                        <asp:DropDownList ID="ddlContent" runat="server" CssClass="ui_select">
                                            <asp:ListItem Value="Age">年龄</asp:ListItem>
                                            <asp:ListItem Value="nick_name">呢称</asp:ListItem>
                                            <asp:ListItem Value="Sex">性别</asp:ListItem>
                                            <asp:ListItem Value="mobile">电话</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlQuery" runat="server" CssClass="ui_select">
                                            <asp:ListItem Value="&gt;">大于</asp:ListItem>
                                            <asp:ListItem Value="=">等于</asp:ListItem>
                                            <asp:ListItem Value="&lt;">小于</asp:ListItem>
                                            <asp:ListItem Value="&lt;&gt;">不等于</asp:ListItem>
                                            <asp:ListItem Value="like">包含</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="tbTxt" runat="server" CssClass="ui_input_01"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnAddQuery" runat="server" CssClass="btn" Text="添加" OnClick="btnAddQuery_Click" />
                                        <asp:Button ID="btnDel" runat="server" CssClass="btn" Text="清空条件" OnClick="btnDel_Click" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr >
                <td style="text-align: right; height:36px">
                    查询条件：
                </td>
                <td style="text-align: left" class="pl4 ">
                       <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                        <ProgressTemplate>
                            <div id="modalDiv" style="text-align:center">                                
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div>
                                <asp:Label ID="lbQuery" runat="server" Text="" CssClass="ui_input_01" Width="90.2%"></asp:Label><asp:HiddenField ID="hQuery"
                                    runat="server" />
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    发送号码：
                </td>
                <td style="text-align: left" class="pl4 ">
                    <textarea id="tbPhone" cols="20" rows="3" runat="server" style="padding:0 4px; width:90%;line-height:34px;" placeholder="手机号码"></textarea>
                </td>
            </tr>

        </table>
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-list">
  <asp:Button ID="btnSend" runat="server" CssClass="btn" Text="获取短信号码" 
                        onclick="btnSend_Click"  />
    <asp:Button ID="btnSubmit" runat="server" Text="发送短信" CssClass="btn" onclick="btnSubmit_Click" />
    </div>
  <div class="clear"></div>
</div>
<!--/工具栏-->

</form>
</body>
</html>
